package org.my.workflow.persistence;

import java.util.Date;

/**
 * @author <a href="mailto:yang_y@sysnet.com.cn">Young Yang</a>
 */
public class StepEntity {
    public static final String STATUS_UNDERAWAY = "Underaway";
    public static final String STATUS_FINISHED = "Finished";

    private String id;
    private String workflowId;
    // step element id
    private String stepElementId;
    private String caller;
    private Date startDate;
    private Date finishDate;
    private Date dueDate;
    private String[] previouStepIds;
    private String status = STATUS_UNDERAWAY;

    public StepEntity(String id, String workflowId, String stepId) {
        this.id = id;
        this.workflowId = workflowId;
        this.stepElementId = stepId;
    }

    public String getStepElementId() {
        return stepElementId;
    }

    public void setStepElementId(String stepElementId) {
        this.stepElementId = stepElementId;
    }

    public String getCaller() {
        return caller;
    }

    public void setCaller(String caller) {
        this.caller = caller;
    }

    public Date getDueDate() {
        return dueDate;
    }

    public void setDueDate(Date dueDate) {
        this.dueDate = dueDate;
    }

    public Date getFinishDate() {
        return finishDate;
    }

    public void setFinishDate(Date finishDate) {
        this.finishDate = finishDate;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String[] getPreviouStepIds() {
        return previouStepIds;
    }

    public void setPreviouStepIds(String[] previouStepIds) {
        this.previouStepIds = previouStepIds;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getWorkflowId() {
        return workflowId;
    }

}
